from django.db import models

# Create your models here.
class wl_attractions(models.Model):

    """
    景点信息表
    """
    id = models.AutoField(primary_key=True)  # 景点ID，自增，唯一标识
    name = models.CharField(max_length=255)  # 景点名称
    major_category = models.CharField(max_length=255, blank=True, null=True)  # 大归类
    minor_category = models.CharField(max_length=255, blank=True, null=True)  # 小归类
    details = models.TextField(blank=True, null=True)  # 信息具体内容

    def __str__(self):
        return self.name